package com.link.base.base.autoconfig.autoconfig.service;

import com.link.base.base.autoconfig.autoconfig.dao.mybatis.mapper.LnkInnerLinkMapper;
import com.link.base.base.autoconfig.autoconfig.model.LnkInnerLink;
import com.link.base.basic.model.ListOfValue;
import com.link.core.basic.dao.mapper.BasicMapper;
import com.link.core.basic.model.BasicModel;
import com.link.core.basic.query.QueryParams;
import com.link.core.basic.service.BasicServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class LnkInnerLinkServiceImpl extends BasicServiceImpl<LnkInnerLink> implements LnkInnerLinkService {
    @Resource
    private LnkInnerLinkMapper lnkInnerLinkMapper;

    @Override
    public List<ListOfValue> queryObjectLink(QueryParams qps) throws Exception {
        LnkInnerLink lov = (LnkInnerLink) BasicModel.transformClass(LnkInnerLink.class, qps);
        return lnkInnerLinkMapper.queryObjectLink(lov);
    }

    @Override
    public BasicMapper<LnkInnerLink> getBasicMapper() {
        return lnkInnerLinkMapper;
    }
}
